package com.heima.utils.common;

import com.heima.model.user.pojos.ApUser;

public class ApUserThreadLocalUtil {
    public static ThreadLocal<ApUser> AP_USER_THREAD_LOCAL=new ThreadLocal<>();

    public static ApUser getThreadLocal() {
        return AP_USER_THREAD_LOCAL.get();
    }

    public static void setThreadLocal(ApUser user) {
        AP_USER_THREAD_LOCAL.set(user);
    }

    public static void remove(){
        AP_USER_THREAD_LOCAL.remove();
    }
}
